package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Buyeractivitiesrecord implements Serializable {
    private Integer barid;

    private Integer parid;

    private Integer bid;

    private static final long serialVersionUID = 1L;

    public Integer getBarid() {
        return barid;
    }

    public void setBarid(Integer barid) {
        this.barid = barid;
    }

    public Integer getParid() {
        return parid;
    }

    public void setParid(Integer parid) {
        this.parid = parid;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Buyeractivitiesrecord other = (Buyeractivitiesrecord) that;
        return (this.getBarid() == null ? other.getBarid() == null : this.getBarid().equals(other.getBarid()))
            && (this.getParid() == null ? other.getParid() == null : this.getParid().equals(other.getParid()))
            && (this.getBid() == null ? other.getBid() == null : this.getBid().equals(other.getBid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBarid() == null) ? 0 : getBarid().hashCode());
        result = prime * result + ((getParid() == null) ? 0 : getParid().hashCode());
        result = prime * result + ((getBid() == null) ? 0 : getBid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", barid=").append(barid);
        sb.append(", parid=").append(parid);
        sb.append(", bid=").append(bid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}